import { request } from '@gui-pkg/request';
import { GetWeatherInfoModel } from './model/weatherModel';

enum Api {
  Weather = '/api/gq/weather/queryStationWeather'
}
/**
 * @description: getWeatherInfo
 */
const requestOptions = {
  joinParamsToUrl: false,
  withToken: false,
  joinTime: false,
  joinPrefix: false,
  isTransformResponse: false,
};

// 天气服务
export const getWeatherInfo = () => {
  return request.get<GetWeatherInfoModel>({ url: Api.Weather });
};
